﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.From {

	/// <summary>
	/// 接地箱和测温
	/// </summary>
	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_earthBox", DisableSyncStructure = true)]
	public partial class TEarthBox {

		/// <summary>
		/// 主键唯一标识Id
		/// </summary>
		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// A相接头温度℃
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? A1Temp { get; set; }

		/// <summary>
		/// A相表皮温度℃
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? A2Temp { get; set; }

		/// <summary>
		/// A相电流A
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? AElectric { get; set; }

		/// <summary>
		/// 报警状态字
		/// </summary>
		[JsonProperty]
		public int? Alarm { get; set; }

		/// <summary>
		/// A相电压V
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? AVolt { get; set; }

		/// <summary>
		/// B相接头温度℃
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? B1Temp { get; set; }

		/// <summary>
		/// B相表皮温度℃
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? B2Temp { get; set; }

		/// <summary>
		/// 铅酸电池电压V
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? BatteryVolt { get; set; }

		/// <summary>
		/// B相电流A
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? BElectric { get; set; }

		/// <summary>
		/// 箱内湿度
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? BoxHumidity { get; set; }

		/// <summary>
		/// 箱内温度
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? BoxTemp { get; set; }

		/// <summary>
		/// B相电压V
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? BVolt { get; set; }

		/// <summary>
		/// C相接头温度℃
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? C1Temp { get; set; }

		/// <summary>
		/// C相表皮温度℃
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? C2Temp { get; set; }

		/// <summary>
		/// C相电流A
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? CElectric { get; set; }

		/// <summary>
		/// 时钟电池电压V
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? ClockVolt { get; set; }

		/// <summary>
		/// 数据录入时间
		/// </summary>
		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		/// <summary>
		/// C相电压V
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? CVolt { get; set; }

		/// <summary>
		/// 设备Id十六进制形式
		/// </summary>
		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		/// <summary>
		/// 1.接地箱数据,2测温数据
		/// </summary>
		[JsonProperty, Column(Name = "deviceType")]
		public int? DeviceType { get; set; }

		/// <summary>
		/// PBUS状态字
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string PBUS { get; set; }

		/// <summary>
		/// GPRS信号强度
		/// </summary>
		[JsonProperty]
		public int? PRS { get; set; }

		/// <summary>
		/// PTCT状态字
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? PTCT { get; set; }

		/// <summary>
		/// 设备唯一标识
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		/// <summary>
		/// 设备数据采集时间
		/// </summary>
		[JsonProperty]
		public DateTime? Time { get; set; }

		/// <summary>
		/// 电缆取电电压V
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Volt1 { get; set; }

		/// <summary>
		/// 太阳能取电电压V
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Volt2 { get; set; }

		/// <summary>
		/// 供电3电压V
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? Volt3 { get; set; }

	}

}
